package com.hotelsystem.service;

import com.hotelsystem.pojo.Room;
import com.hotelsystem.pojo.vo.RoomQueryVo;

import java.util.List;

public interface RoomService {

    //查询全部
    List<Room> selectAll();
    //根据条件分页查询
    //根据条件分页查询
    List<Room> getPageforRoomLists(RoomQueryVo roomQueryVo) throws Exception;

    /**
     * 根据房间号查询房屋信息
     * @param roomId
     * @return
     */
    Room getRoomInfoWithId(String roomId) throws Exception;

    /**
     * 根据房间号删除房间信息
     * @param roomId
     * @return
     */
    Integer deleteRoomInfoWithId(String roomId) throws Exception;

    /**
     * 根据房间对象添加
     * @param room
     * @throws Exception
     */
    void addRoomInfoWithRoom(Room room, String imgBase64) throws Exception;
    /**
     * 修改房屋信息
     * @param room
     */
    void updateRoomInfoByRoom(Room room,String imgBase64,Integer oldTypeId,Integer oldStatusId);
}